package cn.tedu.xuecha.server.bo;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ContentBO implements Serializable {

    /**
     * 数据id
     */
    private Integer id;

    @ApiModelProperty(value = "类别ID", required = true)
    @NotNull(message = "添加类别ID，必须提交类别ID！")
    private Integer categoryId;
    /**
     * 编辑器类型[markdown 富文本]
     */
    @ApiModelProperty(value = " 编辑器类型", required = true)
    private String editor;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题", required = true)
    @NotNull(message = "添加标题失败，必须提交标题！")
    private String title;
    /**
     * 摘要
     */
    @ApiModelProperty(value = "摘要", required = true)
    private String brief;
    /**
     * 关键字,标签对应的id:name json对
     */
    @ApiModelProperty(value = "关键字,标签对应的id:name json对", required = true)
    private String keywords;
    /**
     * 排序号
     */
    @ApiModelProperty(value = "排序号", required = true)
    private Integer sort;
    @ApiModelProperty(value = "封面图", required = true)
    private String  coverUrl;
    @ApiModelProperty(value = "媒体类型", required = true)
    private Integer mediaType;
    @ApiModelProperty(value = "没提URL", required = true)
    private String mediaUrl;
    @ApiModelProperty(value = "创建人", required = true)
    private String createUserName;

    @ApiModelProperty(value = "顶数量", required = true)
    private Integer up;
    @ApiModelProperty(value = "踩数量", required = true)
    private Integer down;
    @ApiModelProperty(value = "审核状态", required = true)
    private Boolean auditStatus;
    @ApiModelProperty(value = "审核原因", required = true)
    private String auditRemark;
    @ApiModelProperty(value = "浏览量", required = true)
    private Integer clickTimes;
    @ApiModelProperty(value = "评论量", required = true)
    private Integer commentTimes;
    @ApiModelProperty(value = "IP", required = true)
    private String ip;
    @ApiModelProperty(value = "显示状态", required = true)
    private Boolean status;
    @ApiModelProperty(value = "创建人ID", required = true)
    private Long createUserId;
    @ApiModelProperty(value = "创建时间", required = true)
    private Long gmtCreate;
    @ApiModelProperty(value = "更新人ID", required = true)
    private Long modifiedUserId;
    @ApiModelProperty(value = "更新时间", required = true)
    private Long gmtModified;
    @ApiModelProperty(value = "更新人", required = true)
    private String modifiedUserName;

}